package iut.acy.cut4u.dao;

public abstract class EntiteDAO {

    protected DataBaseManager db;

    public EntiteDAO () {
        db = DataBaseManager.getInstance();

    }

    public abstract int update ( Object o );

    public abstract int delete ( Object o, boolean onCascade );

    public abstract int insert ( Object o );

    /**
     * @return the db
     */
    public DataBaseManager getDb () {
        return db;
    }
}
